﻿using Shop.RemoteModel.GoodsSpec.Model;

namespace Shop.Service.Interface
{
    public interface ISpecGroupService
    {
        bool SetSkuState (SkuStateSet state);
        void SyncSku (long goodsId);
        void DeleteSpec (long specId);
        void DeleteSpec (long goodsId, long[] specId);
        GoodsSpecSku[] GetSkuSpec (long goodsId);
        GoodsSpecGroup[] GetGroups (long goodsId);
        bool SetSpec (long id, GoodsSpecSet spec);

        GoodsSpec AddSpec (GoodsSpecAdd spec);
        long AddGroup (SpecGroupAdd datum);
        void DeleteGroup (long id);
        bool SetGroup (long id, string name);
        Dictionary<long, int> SetGroupSort (long id, int sort);
        Dictionary<long, int> SetSpecSort (long id, int sort);
    }
}